package me.spring.cloud.components.starter.oauth2.princiapl;

import me.spring.cloud.components.starter.oauth2.princiapl.configuration.UserPrincipalExtractorConfiguration;
import org.springframework.context.annotation.Import;

import java.lang.annotation.*;

/**
 * 启用自定义token中用户信息信息
 * @author luffy
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Import(UserPrincipalExtractorConfiguration.class)
public @interface EnableOAuth2Principal {
}
